#pragma once
#include "include/core/SkCanvas.h"
#include "SimpleCanvas.h"
#include "event/UIEvent.h"
#include "widget/View.h"


namespace yzrilyzr_simplecanvas{
	EBCLASS(SimpleCanvasRoot){
	private:
	uint32_t backgroundColor=SK_ColorWHITE;
	ViewPtr baseView=nullptr;
	public:
	void draw(SkCanvas & canvas);
	void event(const UIEvent * event);
	void changeSize(const uint32_t width, const uint32_t height);
	void setBackgroundColor(const uint32_t color){
		backgroundColor=color;
	}
	void setBaseView(const ViewPtr v){
		baseView=v;
	}
	private:

	};
}